﻿using Basic.FlowRemoteModel.NodeRoute;
using Basic.FlowService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowService.RpcEvent
{
    internal class NodeRouteEvent : IRpcApiService
    {
        private readonly IFlowNodeRouteService _Service;

        public NodeRouteEvent ( IFlowNodeRouteService service )
        {
            this._Service = service;
        }
        public long AddFlowNodeRoute ( AddFlowNodeRoute obj )
        {
            return this._Service.Add(obj.Datum);
        }
        public void DeleteFlowNodeRoute ( DeleteFlowNodeRoute obj )
        {
            this._Service.Delete(obj.Id);
        }
    }
}
